if (${CMAKE_SIZEOF_VOID_P} MATCHES "8")
    add_library(${TARGET_NAME} SHARED backtrace.c)
    target_link_libraries(${TARGET_NAME} unwind unwind-x86_64)
else()
    add_library(${TARGET_NAME} SHARED backtrace.c)
    target_link_libraries(${TARGET_NAME} unwind unwind-x86)
endif ()